import Vue from "vue"
import VueRouter from "vue-router"

Vue.use(VueRouter)

const routes = [
    {
        path: "/",
        name: 'Main',
        component: () => import('views/Main'),
        children: [
            // { 
            //     path: '/home',
            //     name: 'home',
            //     component: () => import('views/home/Home'),

            // },
            // {
            //     path: "/user",
            //     name: 'user',
            //     component: () => import('views/user/User')
            // },
            // {
            //     path: '/mail',
            //     name: 'mail',
            //     component: () => import('views/mail/Mail')
            // },
            // {
            //     path: '/page1',
            //     name: 'page1',
            //     component: () => import('views/other/PageOne')
            // },
            // {
            //     path: '/page2',
            //     name: 'page2',
            //     component: () => import('views/other/PageTwo')
            // },

        ]
    },
    {
        path: '/login',
        name: 'login',
        component: () => import('views/login/Login')
    }

]

const router = new VueRouter({
    mode: "history",
    routes
})
export default router;